package com.woniuxy.base.controller;

import com.woniuxy.base.model.vo.BaseVO;
import com.woniuxy.base.service.BaseService;
import com.woniuxy.response.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/base")
public class BaseController {
    @Resource
    private BaseService baseService;
    @GetMapping("/allBase")
    public ResponseResult<BaseVO> allBase() {
        return new ResponseResult<>(ResponseResult.SUCCESS,"success",baseService.allBase());
    }
}
